import request from '@/utils/request'

// 查询救灾物资列表
export function listWuzi(query) {
  return request({
    url: '/jiuzai/wuzi/list',
    method: 'get',
    params: query
  })
}

// 查询救灾物资详细
export function getWuzi(yId) {
  return request({
    url: '/jiuzai/wuzi/' + yId,
    method: 'get'
  })
}

// 新增救灾物资
export function addWuzi(data) {
  return request({
    url: '/jiuzai/wuzi',
    method: 'post',
    data: data
  })
}

// 修改救灾物资
export function updateWuzi(data) {
  return request({
    url: '/jiuzai/wuzi',
    method: 'put',
    data: data
  })
}

// 删除救灾物资
export function delWuzi(yId) {
  return request({
    url: '/jiuzai/wuzi/' + yId,
    method: 'delete'
  })
}
